package cn.hp.crm.service;

import cn.hp.crm.model.User;
import cn.hp.crm.util.PageBean;
import cn.hp.crm.util.ResultData;

import java.util.List;

public interface UserService {
    boolean login(String userName, String password);

    List<User> getAllUsers();

    PageBean getUsersByPage(PageBean pageBean, User user);

    ResultData resetPassword(Integer id);

    ResultData delUsers(String []ids);

    ResultData addUser(User parameter);

    ResultData updatePassword(String userName, String password, String newPassword);

    ResultData updateImg(String user, String s);

    ResultData selectImg(String user);

    ResultData selectTypeAndCount();
}
